<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    public $table='role';
    public $primaryKey='id';
    public $timestamps=true;
    public function permission(){

        return $this->belongsToMany("App\Model\Permission",'role_permission','role_id','permission_id');
    }
}
